import { defineStore } from 'pinia'
import type { Show } from '../../types/other/show'

/**
 * 页面展示模块
 */
export const showStore = defineStore('Show', {
    // 持久化配置
    persist: {
        storage: localStorage,
        paths: ['show']
    },
    // 状态定义
    state: () => ({

        // 状态标记
        show: 1
    }),

    // 操作方法
    actions: {
        /**
         * 修改show值
         */
        async updateshow(number1) {
            this.show = number1
        },
    }
})
